import request from "@/common/request/ajax.js";

// 用户信息
export function getUserInfo(params) {
	return request({
		url: '/biz/user/detail',
		method: 'GET',
		params
	})
}

export function getBusinessInfo() {
	return request({
		url: '/business/my/info',
		method: 'GET'
	})
}

export function getBusinessBrokerageList(data) {
	return request({
		url: '/business/brokerage/list',
		method: 'GET'
	})
}

//修改密码
export function changePwd(data) {
	return request({
		url: '/business/my/password/update',
		method: 'POST',
		data
	})
}

//消息中心
export function noticeList(params) {
	return request({
		url: '/business/my/message/count',
		method: 'GET',
		params
	})
}

//我的某类消息
export function noticeTypeList(params) {
	return request({
		url: '/business/my/message',
		method: 'GET',
		params
	})
}

//阅读某条消息
export function readNotice(params) {
	return request({
		url: '/business/my/message/read',
		method: 'GET',
		params
	})
}

//阅读所有消息
export function readNoticeAll(params) {
	return request({
		url: '/business/my/message/read/all',
		method: 'GET',
		params
	})
}

//我发展的商户
export function myMerchantsList(params) {
	return request({
		url: '/business/my/merchants',
		method: 'GET',
		params
	})
}

//我发展的商户订单
export function myMerchantsOrderList(params) {
	return request({
		url: '/business/my/orders',
		method: 'GET',
		params
	})
}